package com.javaGame.role.enemyBullet;

import com.javaGame.role.BaseRole;
import com.javaGame.util.ImageChange;

import java.awt.*;

/**
 * 星形子弹
 */
public class StarBullet extends BaseRole implements IEnemyBullet {
    /**星形子弹图片*/
    public static Image[] starBulletImg;
    /**图片切换对象*/
    private ImageChange imageChange = new ImageChange(3);

    public StarBullet(int x, int y) {
        super(x, y, 40, 40);
    }

    @Override
    public void move() {
        this.currentImg = imageChange.change(starBulletImg);
        this.x -= 10;
    }
}
